<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "bus_employee_reward".
 *
 * @property string $reward_id
 * @property string $employee_id
 * @property string $sell_reward
 * @property string $consume_reward
 * @property string $handwork_reward
 * @property string $epiboly_reward
 * @property string $create_time
 * @property string $shop_id
 * @property string $boss_id
 */
class BusEmployeeReward extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'bus_employee_reward';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['employee_id', 'shop_id'], 'required'],
            [['employee_id', 'shop_id', 'boss_id'], 'integer'],
            [['sell_reward', 'consume_reward', 'handwork_reward', 'epiboly_reward'], 'number'],
            [['create_time'], 'safe']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'reward_id' => 'Reward ID',
            'employee_id' => 'Employee ID',
            'sell_reward' => 'Sell Reward',
            'consume_reward' => 'Consume Reward',
            'handwork_reward' => 'Handwork Reward',
            'epiboly_reward' => 'Epiboly Reward',
            'create_time' => 'Create Time',
            'shop_id' => 'Shop ID',
            'boss_id' => 'Boss ID',
        ];
    }
}
